package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.model.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    UserInfo findByAccountAndRoleAndPassword(String account, Integer role, String password);
    
    // 检查用户名是否已存在
    UserInfo findByAccount(String account);
    
    // 插入新用户
    int insert(UserInfo userInfo);
} 